package com.zmn.plat.services.interfaces.channel.workorder.picture;

import com.zmn.plat.model.entity.channel.workorder.picture.ChannelWorkOrderPicture;
import com.zmn.plat.model.entity.channel.workorder.picture.ChannelWorkOrderPictureQuery;
import com.zmn.plat.model.entity.channel.workorder.picture.ChannelWorkOrderPictureStandard;

import java.util.List;

/**
 * 渠道-工单照片service
 * 
 * @author linfeng
 * @since 2020/09/17 17:30
 */
public interface ChannelWorkOrderPictureStandardService {
    /**
     * 根据主键查询
     * 
     * @param id
     *            ID
     * @return
     */
    ChannelWorkOrderPictureStandard findByKey(Integer id);

    /**
     * 根据relateId查询
     */
    List<ChannelWorkOrderPictureStandard> listStandardByRelateId(Integer relateId);

    /**
     * 根据relateIdList查询
     */
    List<ChannelWorkOrderPictureStandard> listStandardByRelateIds(List<Integer> relateIds);

    /**
     * 插入
     */
    int insert(ChannelWorkOrderPictureStandard standard);

    /**
     * 批量插入
     */
    int batchInsert(List<ChannelWorkOrderPictureStandard> standardList);

    /**
     * 删除
     */
    int delete(ChannelWorkOrderPictureStandard standard);

}
